zz_

index.js

zzmq.dev@gmail.com[dev1]/mathkit[add-isperfectsquare-n-function-tests] / index.js @ c510a748 Download
Ladder Summary

Provides the public API for the mathkit library, exporting the sum function and re‑exporting utilities including isOdd, isEven, min, isPrime, factorial, clamp, and the newly added median function.

 export function sum(...numbers) {
  return numbers.reduce((total, n) => total + n, 0);
 }
 export { isOdd } from "./src/isOdd.js";
 export { isEven } from "./src/isEven.js";
 export { min } from "./src/min.js";
 export { isPrime } from "./src/isPrime.js";
 export { factorial } from "./src/factorial.js";
 export { clamp } from "./src/clamp.js";
+export { median } from "./src/median.js";